package dba

import (
	"MBTIx/models"

	"github.com/jmoiron/sqlx"
)

func GetClassByDepId(db *sqlx.DB, dep_id int, classes *[]models.Class) {
	db.Select(classes,
		`select class_id, class_name from class where dep_id = $1`, dep_id)
}
